<template>
  <div class="home">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <div style="margin-top: 20px;">
      <button @click="goToMap" class="map-button">进入地图页面</button>
    </div>
    <div style="margin-top: 20px;">
      <button @click="goToCesium" class="map-button">进入Cesium页面</button>
    </div>
  </div>
</template>

<script>
import HelloWorld from '../components/HelloWorld.vue'

export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  methods: {
    goToMap() {
      this.$router.push('/map')
    },
    goToCesium() {
      this.$router.push('/cesium')
    }
  }
}
</script>

<style scoped>
.home {
  padding: 20px;
}
</style>